//
//  MyAppointmentCell.m
//  WeiWeiApp
//
//  Created by 高继鹏 on 15/10/15.
//  Copyright © 2015年 GaoJipeng. All rights reserved.
//

#import "MyAppointmentCell.h"
#import "UIView+RoundView.h"

@implementation MyAppointmentCell

- (void)awakeFromNib {
    self.contentView.backgroundColor = BACKGROUDCOLOR;
    
    [_headImage setCornerRadius:3];
    [self.contentView setlineFrame:CGRectMake(0, 10.0f, WIDTH, .3f) lineColor:[UIColor lightGrayColor] lineAlpha:1];
    [self.contentView setlineFrame:CGRectMake(0, 103.0f, WIDTH, .3f) lineColor:[UIColor lightGrayColor] lineAlpha:1];
    
    UITapGestureRecognizer *tapHead = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapHeadAction:)];
    [self.headImage addGestureRecognizer:tapHead];
}
-(void)tapHeadAction:(UIGestureRecognizer *)tap
{
    if (_tapHeadBlock) {
        _tapHeadBlock(nil);
    }
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
